package com.javacoo.xservice.base.support.handler.config;

import java.util.Map;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 接口解码参数配置
 * <p>说明:</p>
 * <li>格式=> app.config.decode.decodeParamMap[(版本号_)接口名称]=['解密参数1'],['解密参数2']...</li>
 * @author DuanYong
 * @since 2017年7月12日上午10:01:52
 */
@Configuration
@ConfigurationProperties(prefix = DecodeConfig.PREFIX)
@ConditionalOnProperty(prefix = DecodeConfig.PREFIX, value = DecodeConfig.ENABLED, matchIfMissing = true)
public class DecodeConfig {
    public static final String PREFIX = "app.config.decode";
    public static final String ENABLED = "enabled";
    /**是否可用*/
    private String enabled = ENABLED;
	/**接口解码参数配置Map*/
	private Map<String, String> decodeParamMap;

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public Map<String, String> getDecodeParamMap() {
        return decodeParamMap;
    }

    public void setDecodeParamMap(Map<String, String> decodeParamMap) {
        this.decodeParamMap = decodeParamMap;
    }
}
